#include"./include/filestruct.h"
#include"./include/draw_item.h"
#ifndef_output_h_ 
#define_output_h_
	EVENT *event_init();
	void rank1_init(file_node **root,EVENT* rank1);
	int level(file_node *tmp);
	int page12(char row,char page);
	int page3(char row,char page);
	void output3(file_node *root,char pagenum,int x,int y);
	void output2(file_node *root,char pagenum,int x, int y);
	void output1(char pagenum,EVENT* rank1,EVENT* rank2,EVENT* rank3,EVENT* rank4,int x,int y);
	void rank_compute(file_node **re,EVENT* rank1,EVENT* rank2,EVENT* rank3,EVENT* rank4);
	char* time_compute(char*re,unsigned time, unsigned date);
	char* size_compute(char*str,long int size);
	void select1(file_node**re,char* ord,char pagenum,EVENT* rank1,EVENT* rank2,EVENT* rank3,EVENT* rank4);
	void cselect1(file_node**re,char* ord,char pagenum,EVENT* rank1,EVENT* rank2,EVENT* rank3,EVENT* rank4);
	void cselect23(file_node *root,file_node**re,char mode,char pagenum,char* order);
	int double_hit();
	//char find_dirnum(file_node *head);
#endif
